#include <stdio.h>
#include <stdlib.h>

const int a[4]={0,1,2,3};

static int UpdateCounter(char *b, int c, int a1);

int main()
{
    char *b = NULL;
    int c = 128;

    b = (char*)malloc(1024 * sizeof(char));//b= 0x77a0080

    UpdateCounter(b, c, a[1]);

    free(b);
    printf("c = %d, a[1] = %d.\n", c, a[1]);
    return 0;
}

static int UpdateCounter(char *b, int c, int a1)
{
    int d = 0;
    const int e[4] = {64, 96, 128, 160};

    if(b[c++] > e[a1++])
    {
        d++;
    }
    return d;
}

//code----main  UpdateCounter
//static----a
//heap----b(buffer)
//stack----b(variable)  c  func_param  d  e 
